"""
    随机数获取
    @author tinaroot.cn
    @time 2022/3/6 1:09
"""

import random


def get_code():
    # 获取6个字符验证码
    code = ''
    for i in range(6):
        add = random.choice([random.randrange(10), chr(random.randrange(65, 91)), chr(random.randrange(97, 123))])
        code += str(add)
    return code
